<?php
include(engine.'/classes/proto.class.php');
/**
 * Типы в протоклассе
 *	type=msword,unixtime,text,checkbox
 *
 *
 *
 */
class n extends proto {
  function n() {
    $this->proto();
    $this->tablename="Новости";
    $this->nameforms=array("Новость","Новостей","Новости","Новость");
    $this->fields["date"]=array("type"=>"date","name"=>"Дата","showtop"=>true);
    $this->fields["title"]=array("type"=>"text","name"=>"Название","showtop"=>true);
    $this->fields["anons"]=array("type"=>"msword","name"=>"Анонс","showtop"=>true);
    $this->fields["text"]=array("type"=>"msword","name"=>"Текст","showtop"=>true);
    $this->fields["act"]=array("type"=>"checkbox","name"=>"Активность","showtop"=>true);
  }
}

global $objects;
$objects=array("n");
$proto=new proto();
proto_start($objects);

?>
